From 2331d7489c46ec459362cf9063fc7743a1337b0b Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 2 Feb 2008 16:04:54 +0000 Subject: [PATCH] Convert size, width and height to int, as before r29981 --- includes/api/ApiQueryImageInfo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index f1a335e9db..53239b2b10 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -112,9 +112,9 @@ class ApiQueryImageInfo extends ApiQueryBase { $vals['anon'] = ''; } if($this->fld_size) { - $vals['size'] = $f->getSize(); - $vals['width'] = $f->getWidth(); - $vals['height'] = $f->getHeight(); + $vals['size'] = intval($f->getSize()); + $vals['width'] = intval($f->getWidth()); + $vals['height'] = intval($f->getHeight()); } if($this->fld_url) { if($this->scale && !$f->isOld()) { -- 2.20.1